import time
from selenium.webdriver import Chrome

driver = Chrome()
driver.get("https://baidu.com")

print(driver.title)

time.sleep(5)
# kwInput = driver.find_element_by_id("kw")
# kwInput.send_keys("Hello Selenium")
# driver.find_element_by_id("su").click()

hotsearch = driver.find_elements_by_tag_name("li")
print(hotsearch)
for child in hotsearch:
    print(child.text)

time.sleep(2000)
